<template>
  <el-radio-group :value="value+''" @input="$emit('input', $event)">
    <el-radio-button :label="data.dictLabel" v-for="data in dataList" :key="data.dictValue" v-if="!reName"></el-radio-button>
    <el-radio-button :label="data.dictLabel+reName.get(data.dictLabel)" v-for="data in dataList" :key="data.dictValue" v-if="reName"></el-radio-button>
  </el-radio-group>
</template>
<script>
import { getDictDataList } from '@/utils'
import index from "vuex";
export default {
  name: 'RenRadioGroupButton',
  computed: {
    index() {
      return index
    }
  },
  data () {
    return {
      dataList: getDictDataList(this.dictType),
    }
  },
  props: {
    value: [Number, String],
    dictType: String,
    reName: {
      type: Map,
      default:  () => new Map()
    }
  }
}
</script>
